<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>事件处理</title>
    <style>
        .container{
            background-color: #f00;
            width: 200px;
            height: 200px;
            margin: 0 auto;
        }
    </style>
</head>
<body>
    <div class="container" onkeyup="keyUpHandle(event)"></div>
    <button onclick="btnRemoveEvent()">移除事件监听</button>
    <button onclick="btnDispatchKeyEvent()">点击触发键盘事件</button>
    <script src="js/index.js"></script>
</body>
</html>